function [Sunit_state, Skwh_state, Scost_state, P_state, P_sale_state, PIns_state, PIns0_state, statemaxtaxcredit, statetaxcredit, sunit_cap, StateNames]=read_state_data()

global net_metering

title='../Data/CleanedData/sunit.csv';

Sunit_state=readmatrix(title);

title='../Data/CleanedData/scost.csv';

Scost_state=readmatrix(title);

title='../Data/CleanedData/skwh.csv';

Skwh_state=readmatrix(title);

title='../Data/CleanedData/price.csv';

P_state=readmatrix(title);

% set to equal p_state if net_metering offered
P_sale_state=P_state;
if net_metering==1
title='../Data/CleanedData/price_sale.csv';

P_sale_state=readmatrix(title);


end

title='../Data/CleanedData/estimate_intercept.csv';

PIns0_state=readmatrix(title);

title='../Data/CleanedData/estimate_panels.csv';

PIns_state=readmatrix(title);

title='../Data/CleanedData/statemaxtaxcredit.csv';

statemaxtaxcredit=readmatrix(title);

title='../Data/CleanedData/statetaxcredit.csv';

statetaxcredit=readmatrix(title);


title='../Data/CleanedData/sunit_cap.csv';

sunit_cap=readmatrix(title);

title='../Data/CleanedData/StateNames.xlsx';

[~,StateNames]=xlsread(title, 'A1:A48');


StateNames=string(StateNames);

statemaxtaxcredit=statemaxtaxcredit/1000;
Sunit_state=Sunit_state/1000;
sunit_cap=sunit_cap/1000;
Skwh_state=Skwh_state/1000;
P_state=P_state/1000;
P_sale_state=P_sale_state/1000;
PIns_state=PIns_state/1000;
PIns0_state=PIns0_state/1000; % all prices in 1000 D